predicated
Convenience shortcut for creating a success or error depending on a boolean state.
Used if the value returned will be the same regardless of validation, e.g. in the case of EntryValidator usage, where no changes are being made to the result
Return
the error ValidationResult
Author
fzzyhmstrs
Since
0.7.0
Parameters
Type of result
default or fallback instance of type T
test applied to determine validation or error.
UnaryOperator<ErrorEntry.Builder> operator for applying content to a provided error builder
Deprecated
Plain error strings are deprecated but acceptable. Most of the time passing in ErrorContext is preferred
Convenience shortcut for creating a success or error depending on a boolean state.
Used if the value returned will be the same regardless of validation, e.g. in the case of EntryValidator usage, where no changes are being made to the result
Return
the error ValidationResult
Author
fzzyhmstrs
Since
0.2.0, deprecated 0.7.0
Parameters
Type of result
default or fallback instance of type T
test applied to determine validation or error.
string with error message
Deprecated
Plain error strings are deprecated but acceptable. Most of the time passing in ErrorContext is preferred
Convenience shortcut for creating a success or error depending on a boolean state.
Used if the value returned will be the same regardless of validation, e.g. in the case of EntryValidator usage, where no changes are being made to the result
Return
the error ValidationResult
Author
fzzyhmstrs
Since
0.7.0
Parameters
Type of result
default or fallback instance of type T
test applied to determine validation or error.
ErrorEntry providing information about the possible error
Deprecated
Plain error strings are deprecated but acceptable. Most of the time passing in ErrorContext is preferred
Convenience shortcut for creating a success or error depending on a boolean state.
Used if the value returned will be the same regardless of validation, e.g. in the case of EntryValidator usage, where no changes are being made to the result
Return
the error ValidationResult
Author
fzzyhmstrs
Since
0.6.9, deprecated 0.7.0
Parameters
Type of result
default or fallback instance of type T
test applied to determine validation or error.
supplier of strings with an error message